package com.customer.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.core.dao.CountryRegionDAO;
import com.core.model.CountryRegion;
import com.customer.service.CountryRegionIService;

@Service("countryRegionServiceImpl")
public class CountryRegionServiceImpl implements CountryRegionIService {

	@Resource(name="countryRegionDAO")
	private CountryRegionDAO countryRegionDAO;
	
	@Override
	public List<CountryRegion> getAllCountryRegions() {
		return countryRegionDAO.getAllCountryRegions();
	}

	@Override
	public List<CountryRegion> getCountryRegionsByName(String name) {
		return countryRegionDAO.getCountryRegionsByName(name);
	}

}
